package sd.czw.com.mmgapp.model.goodsbean;

import java.util.List;

/**
 * Created by czw
 * desc 描述：
 * on 2017/7/10.
 */
public class GoodsDetailsModel {

    /**
     * errcode : 1
     * errmsg : {"is_collect":0,"rank_prices":[{"rank_id":"1","price":"115.00","rank_name":"注册用户","select":"1"},{"rank_id":"2","price":"99.00","rank_name":"银咩咩","select":"0"},{"rank_id":"100","price":"83.00","rank_name":"皇咩咩","select":"0"}],"goods":{"goods_id":"3399","cat_id":"172","goods_sn":"D 妖精可可睡衣三件套","goods_name":"包邮2017新款妖精可可睡衣套装韩版家居服女士休闲服冰丝吊带三件套","sales_count":"12062","click_count":"60272","brand_id":"0","goods_number":"995","goods_brief":"","goods_weight":"0克","market_price":"156.0元","shop_price":"115.00","promote_start_date":"0","promote_end_date":"0","goods_thumb":"images/201704/thumb_img/3399_thumb_G_1492108803660.jpg","goods_img":"images/201704/goods_img/3399_G_1492108803540.jpg","is_limit":"0","suppliers_id":"2","comment_rank":5,"shop_price_formated":"115.0元","add_time":"2017-07-10","gmt_end_time":0,"share_url":"https://ca.miemiegou.com/wap/goods.php?id=3399&u=","user_prices":"115.00","level":"pt","specification":[{"name":"颜色","values":[{"label":"白色","price":"","id":"5377"},{"label":"黑色","price":"","id":"5378"},{"label":"酒红色","price":"","id":"5379"}]}]},"pictures":["https://ca.miemiegou.com/images/201704/goods_img/3399_P_1492108803522.jpg"],"now_time":1499650345}
     */

    private int errcode;
    /**
     * is_collect : 0
     * rank_prices : [{"rank_id":"1","price":"115.00","rank_name":"注册用户","select":"1"},{"rank_id":"2","price":"99.00","rank_name":"银咩咩","select":"0"},{"rank_id":"100","price":"83.00","rank_name":"皇咩咩","select":"0"}]
     * goods : {"goods_id":"3399","cat_id":"172","goods_sn":"D 妖精可可睡衣三件套","goods_name":"包邮2017新款妖精可可睡衣套装韩版家居服女士休闲服冰丝吊带三件套","sales_count":"12062","click_count":"60272","brand_id":"0","goods_number":"995","goods_brief":"","goods_weight":"0克","market_price":"156.0元","shop_price":"115.00","promote_start_date":"0","promote_end_date":"0","goods_thumb":"images/201704/thumb_img/3399_thumb_G_1492108803660.jpg","goods_img":"images/201704/goods_img/3399_G_1492108803540.jpg","is_limit":"0","suppliers_id":"2","comment_rank":5,"shop_price_formated":"115.0元","add_time":"2017-07-10","gmt_end_time":0,"share_url":"https://ca.miemiegou.com/wap/goods.php?id=3399&u=","user_prices":"115.00","level":"pt","specification":[{"name":"颜色","values":[{"label":"白色","price":"","id":"5377"},{"label":"黑色","price":"","id":"5378"},{"label":"酒红色","price":"","id":"5379"}]}]}
     * pictures : ["https://ca.miemiegou.com/images/201704/goods_img/3399_P_1492108803522.jpg"]
     * now_time : 1499650345
     */

    private ErrmsgBean errmsg;

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public ErrmsgBean getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(ErrmsgBean errmsg) {
        this.errmsg = errmsg;
    }

    public static class ErrmsgBean {
        private int is_collect;
        /**
         * goods_id : 3399
         * cat_id : 172
         * goods_sn : D 妖精可可睡衣三件套
         * goods_name : 包邮2017新款妖精可可睡衣套装韩版家居服女士休闲服冰丝吊带三件套
         * sales_count : 12062
         * click_count : 60272
         * brand_id : 0
         * goods_number : 995
         * goods_brief :
         * goods_weight : 0克
         * market_price : 156.0元
         * shop_price : 115.00
         * promote_start_date : 0
         * promote_end_date : 0
         * goods_thumb : images/201704/thumb_img/3399_thumb_G_1492108803660.jpg
         * goods_img : images/201704/goods_img/3399_G_1492108803540.jpg
         * is_limit : 0
         * suppliers_id : 2
         * comment_rank : 5
         * shop_price_formated : 115.0元
         * add_time : 2017-07-10
         * gmt_end_time : 0
         * share_url : https://ca.miemiegou.com/wap/goods.php?id=3399&u=
         * user_prices : 115.00
         * level : pt
         * specification : [{"name":"颜色","values":[{"label":"白色","price":"","id":"5377"},{"label":"黑色","price":"","id":"5378"},{"label":"酒红色","price":"","id":"5379"}]}]
         */

        private GoodsBean goods;
        private int now_time;
        /**
         * rank_id : 1
         * price : 115.00
         * rank_name : 注册用户
         * select : 1
         */

        private List<RankPricesBean> rank_prices;
        private List<String> pictures;

        public int getIs_collect() {
            return is_collect;
        }

        public void setIs_collect(int is_collect) {
            this.is_collect = is_collect;
        }

        public GoodsBean getGoods() {
            return goods;
        }

        public void setGoods(GoodsBean goods) {
            this.goods = goods;
        }

        public int getNow_time() {
            return now_time;
        }

        public void setNow_time(int now_time) {
            this.now_time = now_time;
        }

        public List<RankPricesBean> getRank_prices() {
            return rank_prices;
        }

        public void setRank_prices(List<RankPricesBean> rank_prices) {
            this.rank_prices = rank_prices;
        }

        public List<String> getPictures() {
            return pictures;
        }

        public void setPictures(List<String> pictures) {
            this.pictures = pictures;
        }

        public static class GoodsBean {
            private String goods_id;
            private String cat_id;
            private String goods_sn;
            private String goods_name;
            private String sales_count;
            private String click_count;
            private String brand_id;
            private String goods_number;
            private String goods_brief;
            private String goods_weight;
            private String market_price;
            private String shop_price;
            private String promote_start_date;
            private String promote_end_date;
            private String goods_thumb;
            private String goods_img;
            private String is_limit;
            private String suppliers_id;
            private int comment_rank;
            private String shop_price_formated;
            private String add_time;
            private int gmt_end_time;
            private String share_url;
            private String user_prices;
            private String level;
            /**
             * name : 颜色
             * values : [{"label":"白色","price":"","id":"5377"},{"label":"黑色","price":"","id":"5378"},{"label":"酒红色","price":"","id":"5379"}]
             */

            private List<SpecificationBean> specification;

            public String getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(String goods_id) {
                this.goods_id = goods_id;
            }

            public String getCat_id() {
                return cat_id;
            }

            public void setCat_id(String cat_id) {
                this.cat_id = cat_id;
            }

            public String getGoods_sn() {
                return goods_sn;
            }

            public void setGoods_sn(String goods_sn) {
                this.goods_sn = goods_sn;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getSales_count() {
                return sales_count;
            }

            public void setSales_count(String sales_count) {
                this.sales_count = sales_count;
            }

            public String getClick_count() {
                return click_count;
            }

            public void setClick_count(String click_count) {
                this.click_count = click_count;
            }

            public String getBrand_id() {
                return brand_id;
            }

            public void setBrand_id(String brand_id) {
                this.brand_id = brand_id;
            }

            public String getGoods_number() {
                return goods_number;
            }

            public void setGoods_number(String goods_number) {
                this.goods_number = goods_number;
            }

            public String getGoods_brief() {
                return goods_brief;
            }

            public void setGoods_brief(String goods_brief) {
                this.goods_brief = goods_brief;
            }

            public String getGoods_weight() {
                return goods_weight;
            }

            public void setGoods_weight(String goods_weight) {
                this.goods_weight = goods_weight;
            }

            public String getMarket_price() {
                return market_price;
            }

            public void setMarket_price(String market_price) {
                this.market_price = market_price;
            }

            public String getShop_price() {
                return shop_price;
            }

            public void setShop_price(String shop_price) {
                this.shop_price = shop_price;
            }

            public String getPromote_start_date() {
                return promote_start_date;
            }

            public void setPromote_start_date(String promote_start_date) {
                this.promote_start_date = promote_start_date;
            }

            public String getPromote_end_date() {
                return promote_end_date;
            }

            public void setPromote_end_date(String promote_end_date) {
                this.promote_end_date = promote_end_date;
            }

            public String getGoods_thumb() {
                return goods_thumb;
            }

            public void setGoods_thumb(String goods_thumb) {
                this.goods_thumb = goods_thumb;
            }

            public String getGoods_img() {
                return goods_img;
            }

            public void setGoods_img(String goods_img) {
                this.goods_img = goods_img;
            }

            public String getIs_limit() {
                return is_limit;
            }

            public void setIs_limit(String is_limit) {
                this.is_limit = is_limit;
            }

            public String getSuppliers_id() {
                return suppliers_id;
            }

            public void setSuppliers_id(String suppliers_id) {
                this.suppliers_id = suppliers_id;
            }

            public int getComment_rank() {
                return comment_rank;
            }

            public void setComment_rank(int comment_rank) {
                this.comment_rank = comment_rank;
            }

            public String getShop_price_formated() {
                return shop_price_formated;
            }

            public void setShop_price_formated(String shop_price_formated) {
                this.shop_price_formated = shop_price_formated;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }

            public int getGmt_end_time() {
                return gmt_end_time;
            }

            public void setGmt_end_time(int gmt_end_time) {
                this.gmt_end_time = gmt_end_time;
            }

            public String getShare_url() {
                return share_url;
            }

            public void setShare_url(String share_url) {
                this.share_url = share_url;
            }

            public String getUser_prices() {
                return user_prices;
            }

            public void setUser_prices(String user_prices) {
                this.user_prices = user_prices;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public List<SpecificationBean> getSpecification() {
                return specification;
            }

            public void setSpecification(List<SpecificationBean> specification) {
                this.specification = specification;
            }

            public static class SpecificationBean {
                private String name;
                /**
                 * label : 白色
                 * price :
                 * id : 5377
                 */

                private List<ValuesBean> values;

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public List<ValuesBean> getValues() {
                    return values;
                }

                public void setValues(List<ValuesBean> values) {
                    this.values = values;
                }

                public static class ValuesBean {
                    private String label;
                    private String price;
                    private String id;

                    public String getLabel() {
                        return label;
                    }

                    public void setLabel(String label) {
                        this.label = label;
                    }

                    public String getPrice() {
                        return price;
                    }

                    public void setPrice(String price) {
                        this.price = price;
                    }

                    public String getId() {
                        return id;
                    }

                    public void setId(String id) {
                        this.id = id;
                    }
                }
            }
        }

        public static class RankPricesBean {
            private String rank_id;
            private String price;
            private String rank_name;
            private String select;

            public String getRank_id() {
                return rank_id;
            }

            public void setRank_id(String rank_id) {
                this.rank_id = rank_id;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getRank_name() {
                return rank_name;
            }

            public void setRank_name(String rank_name) {
                this.rank_name = rank_name;
            }

            public String getSelect() {
                return select;
            }

            public void setSelect(String select) {
                this.select = select;
            }
        }
    }
}
